package com.sinosoft.ptas.control.dto;

import java.util.Date;

import com.sinosoft.framework.core.api.domain.OrganizationEntity;
import com.sinosoft.framework.core.common.utils.ajax.ObjectUtil;

/**
 * 组织传输类
 * @author lianWuJun
 * @time   2017年2月23日 上午10:40:33
 */
public class OrganizationData {

	private String name; // 机构名称
	private String id; // 机构编号
	private String code; // 机构代码
	private String description; // 描述
	private String identify;//标识符(0代表省司，1代表其他司)
	private String backup1;//备用字段1
	private String backup2;//备用字段2
	private String creater;
	private  Date createtime;
	private String updater;
	private Date updatetime;
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getCode() {
		return code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	public String getCreater() {
		return creater;
	}
	public void setCreater(String creater) {
		this.creater = creater;
	}
	public String getUpdater() {
		return updater;
	}
	public void setUpdater(String updater) {
		this.updater = updater;
	}
	
	public Date getCreatetime() {
		return createtime;
	}
	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}
	public Date getUpdatetime() {
		return updatetime;
	}
	public void setUpdatetime(Date updatetime) {
		this.updatetime = updatetime;
	}
	public String getIdentify() {
		return identify;
	}
	public void setIdentify(String identify) {
		this.identify = identify;
	}
	public String getBackup1() {
		return backup1;
	}
	public void setBackup1(String backup1) {
		this.backup1 = backup1;
	}
	public String getBackup2() {
		return backup2;
	}
	public void setBackup2(String backup2) {
		this.backup2 = backup2;
	}
	/**
	 * 传输类转化成实体类
	 * @return organizationEntity
	 */
	public OrganizationEntity toEntity(){
		OrganizationEntity organizationEntity= new OrganizationEntity();
		ObjectUtil.oldToNew(organizationEntity, this, "serialVersionUID");
		return organizationEntity;
	}
	
	/**
	 * 实体类转化成传输类
	 */
	public void toOrganizationData(OrganizationEntity organizationEntity){
		ObjectUtil.oldToNew(this, organizationEntity, "serialVersionUID");
	}

}
